package com.hpjpw.idoapp.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @BelongsProject: ruoyi
 * @BelongsPackage: com.hpjpw.idoapp.domain
 * @Author: hpj
 * @CreateTime: 2021-01-05 16:49
 * @Description: 接收聊天消息的表单
 */
@ApiModel("接收聊天消息的表单")
public class SendCommunicationMessageVo {

    @ApiModelProperty("聊天消息")
    private String message;

    @ApiModelProperty("是否是守护者")
    private Boolean isGuardian;

    @NotNull(message = "是否为守护者不能为空")
    public Boolean getIsGuardian() {
        return isGuardian;
    }

    public void setIsGuardian(Boolean guardian) {
        isGuardian = guardian;
    }

    @NotBlank(message = "消息不能为空")
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
